package com.scu.freehyan.camera;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;

public class CameraActivity extends AppCompatActivity {
    private MyGLSurfaceView glSurfaceView;
    private MyCamera mCamera;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_camera);
        mCamera = new MyCamera();
        glSurfaceView = new MyGLSurfaceView(this, mCamera);
        setContentView(glSurfaceView);
    }

    @Override
    protected void onPause() {
        super.onPause();
        mCamera.stop();
    }
}
